package com.hello.booksale.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class OrderEntity {
    private int orderId;
    private String orderTime;
    private String userName;
    private int bookNum;
    private String bookUrl;
    private String bookName;
    private double bookPrice;
    private String bookAuthor;
    public OrderEntity(String userName, int bookNum, String bookUrl, String bookName, Double bookPrice, String bookAuthor) {
        this.userName = userName;
        this.bookNum = bookNum;
        this.bookUrl = bookUrl;
        this.bookName=bookName;
        this.bookPrice=bookPrice;
        this.bookAuthor=bookAuthor;
    }

}
